// FUNCIONES IJQUERY

	var ui_DatePicker = function(ID_DESDE,ID_HASTA,opciones){
		
		Opcdefecto = {
			f_desde_onClose : function(){},
			f_hasta_onClose : function(){}
		};
		Opcdefecto = $.extend({},Opcdefecto,opciones);
		
		if(typeof(ID_HASTA)!="undefined"){
			$(ID_DESDE).datepicker({
			  defaultDate: "+1w",
			  changeMonth: true,
			  numberOfMonths: 3,
			  onClose: function( selectedDate ) {
				$(ID_HASTA).datepicker( "option", "minDate", selectedDate );
				$(ID_HASTA).focus();
				Opcdefecto.f_desde_onClose();
			  }
			});
			$(ID_HASTA).datepicker({
			  defaultDate: "+1w",
			  changeMonth: true,
			  numberOfMonths: 3,
			  onClose: function( selectedDate ) {
				$(ID_DESDE).datepicker( "option", "maxDate", selectedDate );
				Opcdefecto.f_hasta_onClose();
			  }
			});
		} else {
			$(ID_DESDE).datepicker({
			  defaultDate: "+1w",
			  changeMonth: true
			});
		}
	}

// PARAMETROS DE CONFirmaCION

	$.datepicker.setDefaults(
	  $.extend(
		{'dateFormat':'dd/mm/yy'}
	  )
	);
	
	$.extend($.ui.dialog.prototype.options, {
		autoOpen	: false,
		draggable	: false,
		modal		: true,
		buttons		: {
			"ACEPTAR" : function(){
				$(this).dialog("close");
			},
			"CERRAR" : function(){
				$(this).dialog("close");
			}
		}
	});
	
/*	$(document).ready(function(){
		jQuery.jnexoCargador(); // Inicializamos el cargador
	});
*/
// EVENTOS LIVE

	
	$(".ui_accordion1").livequery(function(){
		$(this).accordion({
			collapsible: true,
			heightStyle: "content"
		});
	});

	$(".ui_accordion2").livequery(function(){
		$(this).accordion({
			collapsible: true,
			heightStyle: "content",
			active: false
		});
	});

	$(".ui_accordion3").livequery(function(){
		$(this).accordion({
			collapsible: false,
			heightStyle: "content",
			active: false
		});
	});
	

	